home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 5685 / 5685.xpi / chrome / vodpod.jar / content / search_popup.xul < prev    next >
Extensible Markup Language  |  2008-06-27  |  890b  |  35 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3.  
  4. <dialog
  5.     id="videosearch-window"
  6.     title="Video Search"
  7.     buttons="cancel"
  8.     ondialogaccept="run_search(); return true"
  9.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  10.  
  11. <script>
  12.  
  13. function run_search() {
  14.   var q = document.getElementById('search_box').value;
  15.   var url = 'http://vodpod.com/search/browse?src=ff&q=' + encodeURIComponent(q);
  16.  
  17.   window.opener._content.document.location = url;
  18.   window.opener._content.focus();
  19.  
  20. }
  21. </script>
  22.  
  23.   <vbox>
  24.     <spacer flex="1" />
  25.     <label value="Search for videos across the Web" control="search_box"/>  
  26.     <hbox>  
  27.       <textbox id="search_box" flex="1" />
  28.       <button id="go" label="Search" oncommand="run_search();"/>
  29.     </hbox>
  30.     <spacer flex="1" />
  31.   </vbox>
  32.  
  33.   
  34. </dialog>
  35.